<HTML><HEAD><TITLE>get_var_name(?Var, -Name)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(var_name)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>get_var_name(?Var, -Name)</H1>
Retrieve the name given to a variable via set_var_name/2
<DL>
<DT><EM>Var</EM></DT>
<DD>Named variable
</DD>
<DT><EM>Name</EM></DT>
<DD>Variable, will be bound to a string
</DD>
</DL>
<H2>Description</H2>
	<P>
	  Used to retrieve the unique name that was given to a variable via
	  the set_var_name/2 predicate. This name is always of the form
	  BaseName#N, where BaseName is the base name that was specified in
	  set_var_name/2, and N is an integer.
	</P><P>
	  These variable names are intended solely for purposes of debugging
	  and visualisation of a program execution. Any use of this feature
	  in the actual program logic or algorithm is strongly discouraged.
	</P>
	
<H3>Fail Conditions</H3>
Var is not a variable or has not been named via set_var_name/2
<H2>See Also</H2>
<A HREF="../../lib/var_name/set_var_name-2.html">set_var_name / 2</A>
</BODY></HTML>
